package com.example.springboottx.mapper;

import com.example.springboottx.bean.Publisher;
import org.apache.ibatis.annotations.*;
import org.springframework.stereotype.Repository;

@Repository
@Mapper
public interface PublisherMapper {

    @Select("select * from tb_publisher where id = #{id}")
    Publisher findPublisherById(Integer id);


    @Insert("insert into tb_publisher (name) values (#{name})")
    void addPublisher(String name);
}
